package com.example.lab.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * (Lab1)表实体类
 *
 * @author makejava
 * @since 2022-05-01 15:55:34
 */
@SuppressWarnings("serial")
public class Lab1 extends Model<Lab1> {
    @TableId(value = "Lid" ,type = IdType.AUTO)
    //实验室编号
    private Integer lid;
    //实验室房间
    private Integer lroom;
    //使用者
    private String luser;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //预约开始时间
    private Date lstarttime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //预约结束时间
    private Date lendtime;
    //实验室设备
    private Integer ldevice;



    public Integer getLid() {
        return lid;
    }

    public void setLid(Integer lid) {
        this.lid = lid;
    }

    public Integer getLroom() {
        return lroom;
    }

    public void setLroom(Integer lroom) {
        this.lroom = lroom;
    }

    public String getLuser() {
        return luser;
    }

    public void setLuid(String luser) {
        this.luser = luser;
    }

    public Date getLstarttime() {
        return lstarttime;
    }

    public void setLstarttime(Date lstarttime) {
        this.lstarttime = lstarttime;
    }

    public Date getLendtime() {
        return lendtime;
    }

    public void setLendtime(Date lendtime) {
        this.lendtime = lendtime;
    }

    public Integer getLdevice() {
        return ldevice;
    }

    public void setLdevice(Integer ldevice) {
        this.ldevice = ldevice;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.lid;
    }
    }

